Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Press2 1233 new modern layout component #338

Closed

Conversation

ajayadav09
Copy link
Contributor

Screenshot 2023-10-18 at 12 28 22 PM

@officiallygod officiallygod added the WIP PR is a Work in Progress and not ready for review. label Oct 18, 2023
@ajayadav09 ajayadav09 marked this pull request as ready for review October 19, 2023 06:09
@ajayadav09
Copy link
Contributor Author

fixed linting issues

@ajayadav09 ajayadav09 added Code Review The PR is in Code Review WIP PR is a Work in Progress and not ready for review. and removed WIP PR is a Work in Progress and not ready for review. labels Oct 20, 2023
Copy link
Member

@officiallygod officiallygod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can get rid of all the unused/unnecessary code cause they won't be much help and those can be implemented later, let's try to make it more standalone.

src/OnboardingSPA/components/AdminBarSiteGen/index.js Outdated Show resolved Hide resolved
src/OnboardingSPA/components/AdminBarSiteGen/index.js Outdated Show resolved Hide resolved
src/OnboardingSPA/components/AppSiteGen/index.js Outdated Show resolved Hide resolved
src/OnboardingSPA/components/AppSiteGen/index.js Outdated Show resolved Hide resolved
Comment on lines 66 to 68
progressbar={
<ProgressBarSiteGen current={ 20 } total={ 100 } />
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can do the percent calc inside the component itself.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes this is just for representation. we will need to pass the necessary data (current value and total value) as props to the component. Then, we can perform the calculation within the component itself

src/OnboardingSPA/components/HeaderSiteGen/index.js Outdated Show resolved Hide resolved
src/OnboardingSPA/steps/SiteGenGetStarted/index.js Outdated Show resolved Hide resolved
@officiallygod officiallygod removed the WIP PR is a Work in Progress and not ready for review. label Oct 20, 2023
Copy link
Member

@officiallygod officiallygod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the approach of adding SiteGen won't be long term and we might need a folder structure like:

|-- src
    |-- OnboardingSPA
    |   |-- components
    |   |-- steps etc...
    |   |-- index.js
    |-- SiteGenSPA
    |   |-- components
    |   |-- steps etc...
    |   |-- index.js
    |-- Utils
    |   |-- Common utils like Live Preview
    |-- index.js

Can we do something like this to keep the code separate?
Maybe we can discuss this?

src/OnboardingSPA/components/ProgressBarSiteGen/index.js Outdated Show resolved Hide resolved
src/OnboardingSPA/index.js Outdated Show resolved Hide resolved
src/OnboardingSPA/components/ToggleDarkMode/index.js Outdated Show resolved Hide resolved
src/OnboardingSPA/components/AppSiteGen/index.js Outdated Show resolved Hide resolved
src/OnboardingSPA/components/AdminBarSiteGen/index.js Outdated Show resolved Hide resolved
@arunshenoy99 arunshenoy99 changed the base branch from trunk to enhance/ai-onboarding October 25, 2023 07:16
Copy link
Member

@officiallygod officiallygod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Few Things:

  • Let's get rid of SiteGen prefix/suffix in folders?
  • Let's not use --nfd-onboarding-* and maybe --nfd-sitegen-* or --nfd-sg-*

I feel if the prefix are not attached to css classes then a change in sitegen might break onboarding and then go undetected.

src/OnboardingSPA/static/images/user-avatar.png Outdated Show resolved Hide resolved
src/SiteGenSPA/components/Animate/stylesheet.scss Outdated Show resolved Hide resolved
@ajayadav09 ajayadav09 self-assigned this Oct 30, 2023
diDroid and others added 3 commits November 7, 2023 14:29
@officiallygod
Copy link
Member

This has been addressed in #362.

@officiallygod officiallygod deleted the PRESS2-1233-new-modern-layout-component branch November 18, 2023 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Review The PR is in Code Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants